package model;

public class Suppliers {

	private Integer supplierid;
	private String companyname;
	private String contactname;
	private String contacttitle;
	private String address;
	private String city;
	private String region;
	private String postalcode;
	private String country;
	private String phone;
	private String fax;
	private String homepage;
	
	public Suppliers() {

	}
	public Suppliers(Integer supplierid, String companyname, String contactname, String contacttitle, String address, String city, String region, String postalcode, String country, String phone, String fax, String homepage) {
		this.supplierid = supplierid;
		this.companyname = companyname;
		this.contactname = contactname;
		this.contacttitle = contacttitle;
		this.address = address;
		this.city = city;
		this.region = region;
		this.postalcode = postalcode;
		this.country = country;
		this.phone = phone;
		this.fax = fax;
		this.homepage = homepage;
	}

	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCompanyname() {
		return companyname;
	}
	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}
	public String getContactname() {
		return contactname;
	}
	public void setContactname(String contactname) {
		this.contactname = contactname;
	}
	public String getContacttitle() {
		return contacttitle;
	}
	public void setContacttitle(String contacttitle) {
		this.contacttitle = contacttitle;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getHomepage() {
		return homepage;
	}
	public void setHomepage(String homepage) {
		this.homepage = homepage;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPostalcode() {
		return postalcode;
	}
	public void setPostalcode(String postalcode) {
		this.postalcode = postalcode;
	}
	public String getRegion() {
		return region;
	}
	public void setRegion(String region) {
		this.region = region;
	}
	public Integer getSupplierid() {
		return supplierid;
	}
	public void setSupplierid(Integer supplierid) {
		this.supplierid = supplierid;
	}	
    public Object clone() {
        return new Suppliers(this.supplierid, this.companyname, this.contactname, this.contacttitle, this.address, this.city, this.region, this.postalcode, this.country, this.phone, this.fax, this.homepage);
    }
    public boolean equals(Object obj) {
        if (obj instanceof Suppliers) {
        	Suppliers c = (Suppliers)obj;
            
            return c.getSupplierid().equals(supplierid);
        }
        return false;
    }
	
}
